package com.ruoyi.point.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 作品详情对象 works
 * 
 * @author lpt
 * @date 2025-08-14
 */
@Alias("pointwork")
public class Works extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 作品ID */
    @Excel(name = "作品ID")
    private Integer workId;

    /** 作者ID */
    @Excel(name = "作者ID")
    private Integer userId;

    /** 作品标题 */
    @Excel(name = "作品标题")
    private String title;

    /** 作品详情 */
    @Excel(name = "作品详情")
    private String content;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImg;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer viewCount;

    /** 状态（0-正常，1-草稿/下架） */
    @Excel(name = "状态", readConverterExp = "0=-正常，1-草稿/下架")
    private Integer status;

    /** 是否删除：0正常 1删除 */
    private Integer del;

    public void setWorkId(Integer workId) 
    {
        this.workId = workId;
    }

    public Integer getWorkId() 
    {
        return workId;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setCoverImg(String coverImg) 
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg() 
    {
        return coverImg;
    }

    public void setViewCount(Integer viewCount) 
    {
        this.viewCount = viewCount;
    }

    public Integer getViewCount() 
    {
        return viewCount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDel(Integer del) 
    {
        this.del = del;
    }

    public Integer getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workId", getWorkId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("coverImg", getCoverImg())
            .append("createTime", getCreateTime())
            .append("viewCount", getViewCount())
            .append("status", getStatus())
            .append("del", getDel())
            .toString();
    }
}
